﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo8
{
    class Program
    {
        static void Main(string[] args)
        {
            Hero hero1 = new Tank();
            Hero hero2 = new Mage();
            Hero hero3 = new Marksman();
            Hero hero4 = new Tank();
            Hero hero5 = new Mage();

            hero1.Attack();
            hero2.Attack();
            hero3.Attack();
            hero4.Attack();
            hero5.Attack();

            Console.ReadKey();
        }
    }
}
